#include <stdio.h>
#include <string.h>

#define NUM_PLANET 9

int main(int argc, char *argv[]){
	char* planets[] = {"Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturns", "Uranus",
					 "Neptune", "Pluto"};
	int i, j;

	for(i = 1; i < argc; ++i){
		for(j = 0; j < NUM_PLANET; ++j){
			if(strcmp(argv[i], planets[j]) == 0){
				printf("%s is planet at %d!\n", argv[i], j+1);
				break;
			}		
		}
		if (j == NUM_PLANET){
			printf("%s is not a planet\n", argv[i]);
		}
	}
}
